text stringlengths 7 3.69M |
|---|
import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import { Paper } from '../../Components/Paper';
import './home-view.scss';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import FormHelperText from '@material-ui/core/FormHelpe... |
var winston = require('winston');
var Crawler = require('../../crawler.js').Crawler;
describe('Crawler._crawlPage method', function () {
'use strict';
var crawler;
var pageInfo;
var finishCallback;
beforeEach(function () {
crawler = new Crawler();
pageInfo = {
page: {
url: 'http://www.google.com',
... |
var hours = 1;
var minutes = 0;
var seconds = 0;
function showTime() {
var shown_hours = " ";
var shown_minutes = " ";
var shown_seconds = " ";
if (hours == 0) {
shown_hours = "00";
} else if (hours < 10 && hours.toString()[0] != "0") {
shown_hours = "0" + hours;
} else {
... |
exports.emailTemplate = name => {
return `
<div>
<h1 style="display: block; margin: 0 auto; margin-top: 30px;font-size: 20px; text-align: center;font-family: Helvetica; color: rgb(80, 80, 90); font-weight: lighter;">Hey ${ name }!! We are so stoked you signed up to Course Camp! Course Camp is a great website to... |
const Router = require('express')
const router = new Router()
const EmployeController = require('../controllers/employeController')
router.get('/', EmployeController.all)
module.exports = router |
const Clock = ({format}) => format ? format : <span className="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">기록없음</span>;
const Duration = ({format}) => format ? <span className="px-2 inline-flex leading-5 text-xs text-gray-500">{format}</span> : '';
const Attendance = ({date,... |
/**
* Created by elie.
*/
/**
/**
* Generates one stacked histogram with auto-update and its legend inside the svg parameter which will have two of them.
* @param div {Object} D3 encapsulated parent div element.
* @param svg {Object} D3 encapsulated parent svg element, direct child of div parameter, which contai... |
import React from 'react';
import styled from 'styled-components';
const MainBox = styled.div`
width: 100vw;
height: 100vh;
margin: 0;
padding-top: 5rem;
`
const PageHeader = styled.p`
border: 1px solid red;
`
const AboutPage =()=> {
return(
<MainBox>
<PageHeader>About Us<... |
// NOTE: change repo.name to repo.folderName in the cloc command to test the error state
//////////// IMPORTS ////////////
const { exec } = require('child_process'),
Promise = require('bluebird'),
config = require('@config'),
Log = require('@log');
//////////// PRIVATE ////////////
function conver... |
/**
* Module
*
* Description
*/
(function(){
var app = angular.module('app.liga');
app.factory('ligaResource', ['', function(){
return function name(){};
}])
})(); |
const View = () => {
var is_loading = false;
var current_level = 0;
var view_data = {};
setInterval(onUpdate, 1000);
function onUpdate(key) {
if(current_level === 0 && !is_loading){
init();
}
}
const get = key => {
return new Promise(func... |
/**
* Copyright 2015 Google Inc. 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 appli... |
/*
* productUPCGeneratorApi.js
*
* Copyright (c) 2017 HEB
* All rights reserved.
*
* This software is the confidential and proprietary information
* of HEB.
*/
'use strict';
/**
* API to support display product updates task details.
*
* @author vn86116
* @since 2.15.0
*/
(function () {
angular.modu... |
import { expect } from 'chai'
import { call, put, select } from 'redux-saga/effects'
import { clearOnDemand, insertIdsToTheFeed } from '../../src/reducers/ui/updates-feed'
import { findPlaceToInsertIds, moveOnDemandToTheFeed } from '../../src/sagas/move-on-demand-evidences-to-the-feed'
import * as updatesFeedSelector ... |
// Properties file for the server instance
module.exports = {
ping: { "health": "OK" },
port: 5000,
instantClientDir : process.env.NODE_ORACLEDB_ICPATH || "/Users/sriksure/Downloads/instantclient_19_8"
};
|
import { handleResponse, handleError } from "./apiUtils";
// const baseUrl = process.env.API_URL + "/courses/";
// get courses from the mockdatabase
export function getProduct(baseUrl) {
return fetch(baseUrl)
.then(handleResponse)
.catch(handleError);
}
// get product by id from the database
export functio... |
function mostrar()
{
var contador = 0;
var tipoDeProducto;
var jabonCantidad=0;
var barbijoCantidad=0;
var alcoholCantidad=0;
var cantidadDeUnidades;
var fabricante;
var precioMaximoJabon;
var primeraVez;
var cantidadJabon=0;
var cantidadUnidadesJabonMaximo;
var cantidadJabonesFabricanteMaximo;
var cantida... |
export default {
small: 0,
medium: 640,
large: 1024,
xlarge: 1200,
xxlarge: 1440,
xxxlarge: 1800,
};
|
/*
Task 8. Write a JavaScript program to compute the sum of the two given integers. If the two values are same, then returns triple their sum.
Sample Input: 12,5 Sample Input: 8,8
Output : 17 Output : 48 */
var num1 = 8;
var num2 = 8;
if(num1 === num2){
console.log((num1 + num2) * 3);
... |
import tw from 'tailwind-styled-components'
/** */
export const StyledInfoSpacer = tw.div`
h-px
bg-gray-400
my-4
` |
$(function() {
$("#login").bind("ajax:success", function(event, xhr, settings){
toastr["success"]("Все ок");
Turbolinks.visit(window.location);
});
$("#create_user, #create_rest").bind("ajax:success", function(event, xhr, settings){
toastr["success"]("Все ок");
... |
// ==UserScript==
// @name SPIEGEL Remove AdBlock Warning
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/
// @include http://www.spiegel.de*
// @include https://www.spiegel.de*
... |
conn = new Mongo();
db = conn.getDB("sci")
//var myregexp = /(....)-(..)-(..)T(..):(..):(..)\.(.+)([\+-])(..)/;
db.tweets.find().forEach(function(element) {
var dStr = element.created_at;
dStr.replace(/^\w+ (\w+) (\d+) ([\d:]+) \+0000 (\d+)$/,"$1 $2 $4 $3 UTC");
var d = new Date(dStr);
print(d); // Just to make ... |
class PlayerList extends React.Component {
state = {
players: []
}
findAllPlayers = () =>
findAllPlayers()
.then(players => this.setState({players}))
componentDidMount = () =>
this.findAllPlayers()
createPlayer = () =>
createPlayer()
.then(... |
module.exports = function(grunt) {
var mapUrlToBowerComponents = function(req, res, next) {
url_parts = req.url.split('/');
if (url_parts.length > 2 && url_parts[1] != 'bower_components') {
req.url = '/bower_components' + req.url;
}
return next();
};
grunt.initConfig({
connect: {
... |
import test from "tape"
import { upsertWith } from "./upsert"
test("upsertWith", t => {
t.deepEquals(
upsertWith({ id: 2 }, { id: 2, foo: "bar" })([{}]),
[{}, { id: 2, foo: "bar" }],
"Add if doesnt exist"
)
t.deepEquals(
upsertWith(
{ id: 2 },
{ id: 2, title: source => `${source} ips... |
// Scrivi un programma che stampi i numeri da 1 a 100, ma per i multipli di 3 stampi “Fizz” al posto del numero e per i multipli di 5 stampi Buzz.
// Per i numeri che sono sia multipli di 3 che di 5 stampi FizzBuzz.
//scrivere un ciclo che stampa i numeri da 1 a 100
//inserire all interno del ciclo la condizione: i... |
import {
recoveryChangePassword,
recoveryPassword
} from "../../services/RecoveryService";
export default {
Mutation: {
recoveryChangePassword: (_, {token, newPassword}, {user, req}) => {
return recoveryChangePassword(token, newPassword, req)
},
recoveryByEmail: (_, {ema... |
'use strict'
const tap = require('tap')
const Api = require('../../api')
tap.test('commandDirectory > supports no arg (directory of caller)', async t => {
const result = await Api.get({ name: 'test' })
.commandDirectory()
.help()
.outputSettings({ maxWidth: 50 })
.parse('--help')
t.equal(result.co... |
import fmoney from '@/utils/fmoney';
import { paginat } from '@/utils/pagination';
import { Badge, Card, Col, Modal, Row, Table, message } from 'antd';
import axios from 'axios';
import React, { Component } from 'react';
import SearchBox from './SearchBox';
//交易状态
const statusMap = {
'支付失败': 'error',
'待支付': ... |
const net = require('net');
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
function Client(username) {
var address = '';
var port = '';
this.username = username;
this.socket = null;
this.send = function (message) {
this.socket.w... |
import React, { useEffect, useState } from "react";
import { useParams } from "react-router-dom";
import {
Button,
CardStack,
Density,
Surface,
Intent,
Input,
ListItem,
List,
Spinner,
InputGroup
} from "amino-ui";
import useSWR from "swr";
import { AppHeader } from "../Layout/AppHeader";
import { C... |
import React, { Component } from 'react';
import './css/message.css';
export default class Message extends Component {
constructor(option){
super(option);
this.state = {
height:'2rem',
marginTop:0,
imgTop:0,
hasImg:false
}
}
render() {
let {role,text,fullWidth,date} = this.props;
return (
<... |
import CONSTANTS from '@/utils/interfaces/constants';
const REDUCER_KEY = 'Cadence';
const API_PATH = 'mam/cadence';
const DATES_PATH = 'mam';
export const RESULT_KEY = {
LOAD: 'load',
RPM: 'rpm',
TIME: 'time'
};
export const LABELS = {
[RESULT_KEY.RPM]: 'Скорость, об/мин',
[RESULT_KEY.TIME]: 'Время, мс'
}... |
import React, { useState } from 'react'
import { StyleSheet, View } from 'react-native'
import SegmentedControlTab from 'react-native-segmented-control-tab'
const ContainerSegment = ({ values, onPress }) => {
const [ selectedIndex, setValue ] = useState(0)
return (
<View style={styles.container}>
... |
/**
* Angular module for /customers
*/
angular.module('customerApp', ['ngRoute'])
.config(function($routeProvider){
$routeProvider
.when('/', {
templateUrl: 'customers/kunderegister',
controller: 'kunderegisterCtrl'
})
.when('/nykunde', ... |
$(document).ready(function() {
$("#zoom_01").elevateZoom();
}) |
'use strict';
var Error = require('../Error');
var request = require('request');
function WiaResourceOrganisations(wia) {
this.me = function(cb) {
request.get(wia.getApiUrl() + "organisations/me", {
auth: {
bearer: wia.getApiField('accessToken')
},
json: true,
headers: wia.getHea... |
const hoursHand = document.querySelector('.clock-h')
const minutesHand = document.querySelector('.clock-m')
const secondsHand = document.querySelector('.clock-s')
const dateblock = document.querySelector('.day')
function clock() {
let now = new Date()
let h = now.getHours()
let m = now.getMinutes()
let... |
/* data actions */
export const FETCH_FEED_COMPANY = 'FETCH_FEED_COMPANY'
export const UPDATE_FEED_DATA = 'UPDATE_FEED_DATA'
export const FETCH_COMPANY_DATA = 'FETCH_COMPANY_DATA'
export const UPDATE_COMPANY_DATA = 'UPDATE_COMPANY_DATA'
export const SORT_COMPANY_DATA = 'SORT_COMPANY_DATA'
export const FETCH_COMPANY = ... |
//获取客户列表
export const GET_USERLIST ="GET_USERLIST";
//修改其中一条数据
export const MODEL_INFO='MODEL_INFO'
//伤处其中一条数据
export const REMOVE_INFO='REMOVE_INFO'
|
import axios from "axios";
const baseUrl = "https://restcountries.eu/rest/v2/all"
const getAll = () => {
const request = axios.get(baseUrl).then((response) => {
return response.data
})
return request
}
const countriesService = { getAll }
export default countriesService |
// Copyright (c) 2021 Visiosto oy
// Licensed under the MIT License
export default {
cvGradesShow: 'Näytä arvosanojen erittely',
cvGradesHide: 'Piilota',
};
|
$.ajax({
url: 'https://api.github.com/repos/MalikSteam/account_public/commits',
beforeSend: function (xhr) {
xhr.setRequestHeader ("Accept: application/vnd.github.v3+json");
},
dataType: 'jsonp',
success: function(data){
console.log(data.data[0].sha);
$.ajax({
url: 'https://api.github.com/repos/MalikStea... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { hbs } from 'ember-cli-htmlbars';
import Component from '@ember/component';
import { register } from 'ember-register-helper/helpers/register';
module('Integration | Helper | register', function(hooks) {
setupRenderingTest... |
document.addEventListener('DOMContentLoaded', function() {
object_id = '';
$(document).on("click", ".fc-time-grid-event", function() {
object_id = $('#object_id_calendar').val();
//object_id = document.getElementById('object_id_calendar').value;
});
$(".upload").upload({
action: "../php/handler.php",
lab... |
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
env: {
jest: true
},
rules: {
'no-use-before-define': 'off',
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'comma-dangle': 'off',
'import/prefer-default-export': 'off',
'no-console': 'off',
'globa... |
$(document).ready(function(){
$("#tweets").change(function(e) {
var selected = $(this).val();
if(selected === '--')
{
return ;
}
else
{
$.ajax({
method: 'POST',
url: 'test.php',
dataType: 'json',
data: {
... |
import CurrencyService from "../Services/Currency.service";
export default class User {
constructor(budget, selectedItems) {
this.budget = budget;
this.selectedItems = selectedItems;
}
selectedItemsMinPrice(items) {
return this.selectedItems.map((itemID) => items.find((item) => item.id === itemID)).... |
import React from "react";
import ReactDOM from "react-dom";
import { applyMiddleware, createStore } from "redux";
import { MuiThemeProvider } from '@material-ui/core/styles';
import { Provider } from "react-redux";
import ReduxThunk from "redux-thunk"; // no
import { Router } from "react-router-dom";
import reducers ... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import * as React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import Header from "./header"
// import Footer from ... |
function stxAjax(vUrl, vCallBack, vIsPost)
{
if (window.ActiveXObject)
{
this.objXmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} else if (window.XMLHttpRequest)
{
this.objXmlHttpReq = new XMLHttpRequest();
}
this.url = vUrl;
this.isPost = vIsPost;
this.callBack = vCallBack;
vUrl = null;
vIsPo... |
import React, { useState } from 'react';
import useForm from 'react-hook-form';
import { Link, Redirect } from "react-router-dom";
import { usernameLoginConfig, passwordConfig } from '../../utils/userValidationRules';
import authReducer, { login } from "../../utils/authAdministration";
import './styles.css';
import rou... |
import RegionScreen from '@screens/userScreens/regions';
import PokemonScreen from '@screens/userScreens/pokemon';
import PokemonDetailsScreen from '@screens/userScreens/pokemonDetails';
import TeamScreen from '@screens/userScreens/teams';
import TeamDetailsScreen from '@screens/userScreens/teamDetails';
import TeamTok... |
var i=document.cookie;
var read='http://localhost:8010/history?userID='+i;
var API_URL = {
READ: read
};
console.log(API_URL.READ);
window.Eye = {
getRow: function(history) {
return `<tr>
<td style="width:100px">${history.date}</td>
<td style="width:100px">${history.result}</td>... |
import moment from 'moment';
const convertISOString = ({
hour, minute, second
}) => (
moment
.duration(second, 'seconds')
.add(minute, 'minutes')
.add(hour, 'hours')
.toISOString()
)
export default convertISOString
|
const init_auto_comlete=function (){
const Input=(function(){
function Input(select_el,controll,delault_v){
this.select_el=select_el;
this.controll=controll;
this.delault_v=delault_v;
this.input;
this.values;
this.Tr;
this.Html;
}
Input.prototype.init_focus=function(){
this.select_el... |
import React from 'react';
import { View, Text, StyleSheet, ActivityIndicator, ScrollView } from 'react-native';
import { Image, Button } from 'react-native-elements';
import BootstrapStyleSheet from 'react-native-bootstrap-styles';
import Tts from 'react-native-tts';
import Icon from 'react-native-vector-icons/FontAwe... |
import React from "react";
const Country = ({ country, setQuery }) => (
<div>
<h2>{country.name}</h2>
<p>capital {country.capital}</p>
<p>population {country.population}</p>
<h3>languages</h3>
<ul>
{country.languages.map(l => <li key={l.iso639_1}>{l.name}</li>)}
... |
import { css } from 'styled-components';
import fonts from './fonts';
const common = css`
margin: 0;
padding: 0;
`;
const display = css`
font-size: 6rem;
line-height: 6.5rem;
font-weight: 700;
text-transform: uppercase;
${common}
font-family: ${fonts.saira};
`;
const h2 = css`
font-size: 3.5rem;
... |
'use strict';
const url = require('url');
const querystring = require('querystring');
const expressionsToMatch = [{
regex: /devEnv=(dev\d*|staging|qa\d*)/,
onMatch: (match) => ({ devMode: true, devEnv: match[1] })
}, {
regex: /releaseChannel=(beta|prod)/,
onMatch: (match) => ({ releaseChannel: match[1] })
}, ... |
function Renderer_Parcometro() {
};
Renderer_Parcometro.prototype.reset = function(container) {
if (container == undefined) {
container = containerParcometro;
}
container.empty();
};
Renderer_Parcometro.prototype.render = function(add, data, container) {
if (add) {
var li = $("#" + data['id']);
if (li.leng... |
var core = new Core({ debug: true });
/**
*
*
*/
function initApp() {
core.installModules(function () {
//you script here
console.debug("Scripts loaded");
utils.load();
});
}
document.addEventListener('DOMContentLoaded', initApp);
|
import React, { useEffect } from "react";
import { connect } from "react-redux";
import Sidebar from "../../components/Sidebar/Sidebar";
import { StyledDashboard } from "./Dashboard.styled";
import { Switch, Route } from "react-router-dom";
import UserProfile from "../../components/UserProfile/UserProfile";
function D... |
function emptyObj (obj) {
return Object.entries(obj)
.every(([, val]) => val === '')
}
module.exports = (invoice) => {
const unicodeMinus = '\u2212'
// Recipient newline
const recipientAddressTooLong = Object
.values(invoice.to.address)
.join()
.length > 50
const rnl = recipientAddressTooLo... |
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
state: {
width: 0, // 浏览器宽度
height: 0, // 浏览器高度
stories: [], // 新闻内容数组
ids: [], // 新闻id数组
id: '' // 当前新闻详情的id
},
getters: {
collectText: state => {
return state.isCollect ? '取消收藏' : '收藏... |
import React, { useContext } from 'react';
import {
Button,
Image,
Spinner
} from 'react-bootstrap';
import AuthContext from './../../contexts/AuthContext';
function NavbarProfile() {
const {
isProfileLoading,
profile,
logout
} = useContext(AuthContext);
const handleLogoutClick = () => logout... |
"use strict";
angular.module("GolfClub").controller("InfoCtrl", ["$scope", "$location", function ($scope, $location) {
var params = $location.search();
$scope.lt.page = $location.path();
$scope.reservationData = [];
$scope.resourcesData = [];
$scope.info = {
loadingData: true,
curre... |
import UtilQS from 'qs';
import UtilDom from './utils/util_dom.js';
import UtilUrl from './utils/util_url.js';
import UtilRecurse from './utils/util_recurse.js';
import UtilFilter from './utils/util_filter.js';
import UtilCrypto from './utils/util_crypto.js';
import UtilStorage from './utils/util_storage.js';
import U... |
(function(root, $) {
if (!$) {
alert("jQuery未加载");
return;
}
var dm = root.dm = function() {}; //向全局对象添加dm属性
if (!root.Object.create)
dm.create = function(o) {
var F = function() {};
F.prototype = o;
return new F();
};
e... |
const express = require('express');
const router = express.Router();
const bcrypt = require("bcryptjs")
const mongoose = require('mongoose');
const Register = require('../models/register');
const jwt = require('jsonwebtoken');
//Authdata
const Authdata = async (req, res, next) => {
try {
const token = req... |
import { RECEIVE_USER_DATA, RECEIVE_DASHBOARDUSER_DATA, RECEIVE_ALLUSER_DATA } from "../actions";
export default (state = {}, { type, data }) => {
switch (type) {
case RECEIVE_USER_DATA:
return {
...state,
userData: data,
}
case RECEIVE_DASHBOARDUSER_DATA:
return {
... |
Package.describe({
summary: "Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript."
});
Package.on_use(function (api, where) {
api.add_files('async/lib/async.js', 'server');
});
|
/* @flow */
/* **********************************************************
* File: utils/dataStreams/textFiles.js
*
* Brief: Opening, reading, and manipulating text files.
*
* Authors: Craig Cheney
*
* 2017.10.25 CC - Document created
*
********************************************************* */
/* Save a text file wi... |
function getFilterParams(filter = {}) {
return {
date: filter.date || null,
status: filter.status || null,
teachersIds: filter.teachersIds || null,
studentsCount: filter.studentsCount || null,
page: filter.page || 1,
lessonPerPage: filter.lessonPerPage || 5,
}
}
... |
'use strict';
angular.module('myangularApp.util', []);
|
const applicationInfo = require('../_application.json');
const path = require('path');
const logger = require(__loggerPath);
const express = require('express');
const router = express.Router();
const fs = require('fs');
const PageHelper = require('../../../components/helpers/PageHelper');
const BaseCarHelper = r... |
import { stringify } from 'querystring';
import { router } from 'umi';
import { getPageQuery } from '@/utils/utils';
export const HOST = 'http://www.qinguanghui.com'
// export const HOST = ''
// export const HOST = 'http://localhost:7001'
/**
* 检查是否具有权限
* 返回值: 没有权限返回空, 有权限,返回应该添加的 header 值
*/
export const authHea... |
import tw from 'tailwind-styled-components'
export const NavigationItemLiner = tw.div`
flex
px-2
py-2
hover:bg-gray-200
items-center
rounded
cursor:pointer
`
|
import React, {
forwardRef,
useState,
useRef,
useImperativeMethods,
} from 'react'
import PropTypes from 'prop-types'
const CheckBox = forwardRef(({ name, label, checked: isChecked }, ref) => {
const [value, setValue] = useState(isChecked)
const handleChange = e => {
setValue(e.target.checked)
}
c... |
import React from "react";
function Buy() {
return (
<div>
<h1 className="buy">Buy</h1>
</div>
);
}
export default Buy;
|
Toolbar = React.createClass({
propTypes: { //validators for this component
logo: React.PropTypes.string.isRequired,
logged: React.PropTypes.bool.isRequired
},
getInitialState() {
return {
notifications : 0
};
},
render() {
if (this.props.logged) {
return (
<header>
... |
import React from 'react'
import { Icon } from '../icon'
import './assets/footer.css'
const WEBSITE_AUTHOR = process.env.REACT_APP_WEBSITE_AUTHOR
const YEAR = new Date().getFullYear()
const SOCIAL_NETWORKS = [
{ name: 'github', link: 'https://github.com/raulmoyareyes' },
{ name: 'linkedin', link: 'https://www.l... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VuePageTitle from 'vue-page-title'
Vue.config.productionTip = false;
Vue.use(VuePageTitle, {suffix: ' - Demo'});
// Original title mixin does not allow for reactivity nor switching routes with same component.
/* const pageTitleUpd... |
/**
* Created by ZXW on 2017/11/13.
*/
var adminidbefore = $("#adminid").val().trim();
$('#baocun').on("click", function () {
var adminid = $("#adminid").val().trim();
var roleid = $("#roleid").val().trim();
var adminlogin = $("#adminlogin").val().trim();
var adminpsw = $("#adminpsw").val().trim();
... |
import React from 'react';
import CollectionItem from '../../components/collection-item/collection-item.component';
import {connect} from 'react-redux';
import './category.styles.scss';
const CategoryPage = ({match,collections}) => {
//const filtered = collections.find(item=>item.routeName===match.params.catego... |
/**
* @module FilmClass
*/
/*
* Class Film
* ----------
* Pour la gestion d'un film, principalement lorsqu'il est édité
*
* NOTES
* -----
* :: La toute première définition se trouve dans required.
*/
// // On l'étend avec les méthodes et propriétés partagées
// $.extend(Film.prototype, ObjetCla... |
let nav = document.querySelector('.navbar');
document.addEventListener('scroll', () => {
if (scrollY > 50 ) {
if (!nav.classList.contains('over')){
nav.classList.add('over')
}
} else {
nav.classList.remove('over')
}
}) |
import 'rxjs';
import { combineEpics } from 'redux-observable';
import { api } from '../services';
import * as actions from '../actions';
import * as membershipActions from '../actions/membership.action';
/**
* add to member
* @param action$
* @param store
* @returns {any|*|Observable}
*/
const getAllMembership =... |
var mutt__menu_8h =
[
[ "Menu", "structMenu.html", "structMenu" ],
[ "REDRAW_NO_FLAGS", "mutt__menu_8h.html#a1f96f27f798ffa90d7b8a37c5f5d963a", null ],
[ "REDRAW_INDEX", "mutt__menu_8h.html#a17ef6a49291da65aac4163281062c9bf", null ],
[ "REDRAW_MOTION", "mutt__menu_8h.html#a2cbe5a56bfd89f5bc04d61a756b2d0... |
(function () {
'use strict';
/**
* @ngdoc object
* @name 0502pfingsten.controller:C0502pfingstenCtrl
*
* @description
*
*/
angular
.module('0502pfingsten')
.controller('C0502pfingstenCtrl', C0502pfingstenCtrl);
function C0502pfingstenCtrl() {
var vm = this;
vm.ctrlName = 'C05... |
const webpack = require('@dolittle/vanir-webpack/backend');
module.exports = (env, argv) => {
return webpack(env, argv, config => { });
};
|
import useSWR from "swr";
import { useParams } from "react-router-dom";
const baseUrl =
"https://2q2woep105.execute-api.eu-west-1.amazonaws.com/napptilus/oompa-loompas/{id}";
export default function useGetSingleOompaResult() {
const { id } = useParams();
const url = baseUrl.replace(/{id}/, parseInt(id));
cons... |
'use strict';
angular.module('newApp').controller('mdl.mobileweb.controller.recordprogress',
['$rootScope', '$scope', 'mdl.mobileweb.service.dashboard', 'mdl.mobileweb.service.recordprogress', 'mdl.mobileweb.service.login', 'toaster', 'mdl.mobileweb.service.json', '$http', 'modalService', '$location',
function (... |
export const fetchCandidates = (data) => {
return{
type: 'ADD_CANDIDATES',
payload: data
}
} |
import axios from 'axios'
/* Given an upper limit, returns an object with the median and error
If error occurs, median will be null and error will contain a message.
If successful, median will be an array of numbers, and error will be null
*/
export function getMedianPrime(limit) {
return axios.get(`/api/media... |
$(document).ready(function() {
$('.scrollbars').ClassyScroll();
});
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 75) {
$(".clearHeader").addClass("darkHeader");
} else {
$(".clearHeader").removeClass("darkHeader");
}
});
function toggler(divId) {
$("#" + divId).toggl... |
let restaurant1 = {
name: "Paesano",
totalSeats: 10,
numberOfCustomers: 8,
address: {
city: "Glasgow",
area: "center",
},
menu: ["pizza", "calzone", "salad"],
};
let restaurant2 = {
name: "Ubiquitous Chip",
totalSeats: 20,
numberOfCustomers: 10,
... |
// https://github.com/jigish/slate/wiki
// https://github.com/jigish/dotfiles/blob/master/slate.js
S.cfga({
"keyboardLayout": "qwerty",
"nudgePercentOf": "windowSize",
"resizePercentOf": "windowSize",
"focusCheckWidthMax": 3000,
"undoOps": ""
});
var monitorMac = "1920x1200";
var monitorTID = "192... |
/*fetch all team name**/
const Team = require('../models/Team');
const Player = require('../models/Player');
const Coach = require('../models/Coach');
// const Executive = require('../models/Executive');
exports.getIndex = (req, res, next) => {
console.log("This is a message")
Team.fetchAll()
.then((... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.